import QtQuick 2.15
import QtQuick.Controls 2.15
import "./../../Control/RadioJs.js" as RadioJs
import RadioGlobal 1.0 as RadioGlobal
Item {
    id: headItem

    signal loadSearchChannel()

    Button {
        id: searchChannel
        height: parent.height * 0.6
        width: 80
        anchors.verticalCenter: parent.verticalCenter
        anchors.right: parent.right
        text: "搜频页面"
        onClicked: {
            headItem.loadSearchChannel()
            RadioJs.stopChannel()
            //清空通道数据
            RadioGlobal.RadioData.searchChannelData.clear()
        }
    }

//    //测试代码
//    Rectangle{
//        id: test
//        color: "red"
//        anchors.fill: parent
//        Text{
//            anchors.centerIn: parent
//            text: "Head"
//        }
//    }
}
